Skip to main content

Cancel Appointment Workflow

Bookadoc integrates with DrChrono to allow patients to cancel appointments with healthcare providers.

Cancel the Appointment

Bookadoc sends a request to DrChrono to cancel the appointment.

API Endpoint

DELETE /api/appointments/{appointmentId}

Example Request

DELETE /api/appointments/1861676

Response Example

204 No Content

If the request is successful, the appointment is updated in DrChrono, and Bookadoc records the appointment details.


Error Handling

If an error occurs at any step, Bookadoc handles it gracefully and provides feedback to the user.

Common Errors & Resolutions

Error CodeDescriptionResolution
400 Bad RequestMissing or invalid input fieldsEnsure all required fields are provided
409 ConflictAppointment slot already bookedPrompt user to select another slot
500 Internal Server ErrorAthenaHealth API issueRetry the request after some time

Conclusion

The booking appointment workflow ensures that Bookadoc synchronizes seamlessly with DrChrono, allowing patients to cancel appointments while keeping providers' schedules up to date. By validating data, checking availability, and handling errors effectively, Bookadoc enhances the booking experience for both patients and providers.